<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:ui="http://java.sun.com/jsf/facelets">
<h:head>
    <h:outputStylesheet library="css" name="main.css" />
</h:head>
<h:body>
    <h:form>
        <h:messages/>
 
        <h3>${msgs.votoCreateHeader}</h3>
        <h:panelGrid columns="2" styleClass="panelGrid" rowClasses="panelFirstLine,panelNextLine" >
            <h:outputLabel for="votoName" value="#{msgs.votoName}" />
            <h:inputText id="votoName" value="#{votoMB.voto.name}" required="true" requiredMessage="#{msgs.votoNameRequired}" />
 
            <h:outputLabel for="votoVotou" value="#{msgs.votoVotou}" />
            <h:inputText id="dogWeight" value="#{votoMB.voto.votou}" required="true" requiredMessage="#{msgs.votouRequired}" >
                <f:convertNumber />
            </h:inputText>
        </h:panelGrid>
        <h:panelGrid columns="2">
            <h:commandButton action="#{votoMB.createVotoEnd()}" value="#{msgs.create}" />
            <h:commandButton action="#{dogMB.listAllVotos()}" value="#{msgs.cancel}" immediate="true" />
        </h:panelGrid>
        <br/>
    </h:form>
</h:body>
</html>